package com.example.web;

public class BookCreationResponse implements Response {
    private int code;
    private String msg;
    private String bookId;

    public BookCreationResponse(int code, String msg) {
        this.code = code;
        this.msg = msg;
        this.bookId = "";
    }

    public BookCreationResponse(String bookId) {
        this.code = 201;
        this.msg = "Created";
        this.bookId = bookId;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    @Override
    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getBookId() {
        return bookId;
    }

    public void setBookId(String bookId) {
        this.bookId = bookId;
    }

}
